package com.tjresearch.api.service;

import java.io.Serializable;

import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

import com.tjresearch.api.pojo.Goods;
import com.tjresearch.api.pojo.UserInfo;
@Service
public class UserServiceImpl implements UserService , Serializable{

	private static final long serialVersionUID = 1L;

	public UserInfo getUser(Long userId){
		Assert.notNull(userId,"");
		UserInfo info = new UserInfo();
		info.setName("小明");
		info.setSex("男");
		info.setUserId(userId);
		info.setIdcard("123");
		return info;
	}

	public Goods getDemo(Goods goods){
		Assert.notNull(goods,"");
		return goods;
	}

}